﻿CREATE TABLE [dbo].[Product] (
    [Id]          INT             IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [Sort]        INT             NULL,
    [CId]         INT             NULL,
    [CateOneId]   INT             NULL,
    [CateTwoId]   INT             NULL,
    [SupplierId]  INT             CONSTRAINT [DF_Product_SupplierId] DEFAULT ((0)) NULL,
    [Title]       NVARCHAR (50)   NULL,
    [CostPrice]   NUMERIC (18, 2) NULL,
    [SalePrice]   NUMERIC (18, 2) NULL,
    [Description] NVARCHAR (1000) NULL,
    [UpTime]      DATETIME        NULL,
    [SCateOneId]  INT             NULL,
    [SCateTwoId]  INT             NULL,
    [SubjectId]   INT             NULL,
    [xmfx]        SMALLINT        CONSTRAINT [DF_Product_xmfx] DEFAULT ((1)) NOT NULL,
    [flag]        INT             CONSTRAINT [DF_Product_flag_1] DEFAULT ((0)) NULL,
    [F_flag]      VARCHAR (10)    CONSTRAINT [DF_Product_F_flag] DEFAULT ('') NULL,
    CONSTRAINT [PK_Product] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'网站1，其他0', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Product', @level2type = N'COLUMN', @level2name = N'flag';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'月报专用分类字段', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Product', @level2type = N'COLUMN', @level2name = N'F_flag';

